const getters = {
  sidebar: state => state.app.sidebar,
  menu: state => state.app.menu,
  userDetal: state => state.user.userDetal,
  loadingMessage: state => state.app.loadingMessage,
  accessToken: state => state.user.accessToken,
  appToken: state => state.user.appToken,
  getBreadcrumb: state => level => {
    if (state.app.breadcrumb[level]) {
      return state.app.breadcrumb[level];
    } else {
      if (
        localStorage.getItem("breadcrumb") &&
        localStorage.getItem("breadcrumb")[level]
      ) {
        return localStorage.getItem("breadcrumb")[level];
      } else {
        return {};
      }
    }
  },
  getConcList: state => state.siteManagement.concList,
  getResourceName: state => state.siteManagement.resourceName,
  getesmcDeviceEntryBill: state => state.siteManagement.esmcDeviceEntryBill,
  gettableData: state => state.siteManagement.tableData,
  equipmentExitAddList: state => state.equipmentExitAdd.addList,
  // 合同
  getTaxRate: state => state.contractDraft.taxRate,
  getTaxRateObj: state => state.contractDraft.taxRateObj,
  getMultiRateCode: state => state.contractDraft.isMultiRateCode,
  getMultiRateStatus: state => state.contractDraft.isMultiRateStatus,
  getSupplierObj: state => state.contractDraft.supplierData,
  getSupplierBObj: state => state.contractDraft.supplierBData,
  getProtocalData: state => state.contractDraft.protocalData,
  getEchoProtocalData: state => state.contractDraft.echoProtocalData,
  getOrgId: state => state.contractDraft.orgId,
  getContractPriceIncludeTax: state =>
    state.contractDraft.contractPriceIncludeTax,
  getContractPriceExcludeTax: state =>
    state.contractDraft.contractPriceExcludeTax,
  getDelectList: state => state.contractDraft.setDelectList,
  getRangeObj: state => state.contractDraft.rangeObj,
  getShowDoubleTable: state => state.contractDraft.showDoubleTable,
  getPurchaseListStatus: state => state.contractDraft.purchaseListStatus,
  getSpecificationsArr: state => state.contractDraft.specificationsArr,
  getTableHeadRuleNode: state => state.contractDraft.tableHeadRuleNode,
  getPayTableHeadRuleNode: state => state.contractDraft.payTableHeadRuleNode,
  getConfirmDeleteList: state => state.contractDraft.confirmDeleteList,
  getRouteUrl: state => state.contractDraft.routeUrl,
  getAgreementSelectStatus: state => state.contractDraft.agreementSelectStatus,
  getUploadFileRules: state => state.contractDraft.uploadFileRules,
  getInvoiceOrc: state => state.contractDraft.invoiceOrc,
  getRemoveInventoryList: state => state.contractDraft.removeInventoryList,
  getRemoveInventoryListStatus: state =>
    state.contractDraft.removeInventoryListStatus,
  getProtocalObj: state => state.contractDraft.protocalCode,
  getCurrencyObj: state => state.contractDraft.currencyObj,
  getRemoveSupplier: state => state.contractDraft.removeSupplier,
  getRemoveSupplierB: state => state.contractDraft.removeSupplierB,
  getListInputValStatus: state => state.contractDraft.listInputValStatus,
  getSelectPartyBStrategy: state => state.contractDraft.selectPartyBStrategy,
  getSelectProjectNameStrategy: state =>
    state.contractDraft.selectProjectNameStrategy,
  getSelectAccountingOrganStrategy: state =>
    state.contractDraft.selectAccountingOrganStrategy,
  // 盘点
  businessList: state => state.business.businessList,
  getWarehouseId: state => state.finanInventory.warehouseId,
  getInventoryStatus: state => state.finanInventory.inventoryStatus,
  getPurchaseListData: state => state.finanInventory.purchaseListData,
  getReportChange: state => state.finanInventory.reportChange,
  getInventoryCount: state => state.finanInventory.inventoryCount,
  getRemoveStatus: state => state.finanInventory.removeStatus,
  getIsProfit: state => state.finanInventory.isProfit,
  // 发票采购清单
  getInvoicePurchase: state => state.invoiceStore.invoicePurchase
};
export default getters;
